package com.violet.base.server.dic.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.violet.db.entity.PhysicalEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 类说明:字典类别表
 *
 * @author wqf
 * @date 2022/10/27 9:35
 */
@EqualsAndHashCode(callSuper = true)
@Schema(description = "字典数据实体",name = "字典数据实体")
@Data
@TableName(value = "b_dict_item")
public class DictItemEntity extends PhysicalEntity {

    /**
     * 字典类别id 表b_dict_type 主键id
     */
    @TableField(value = "dic_type_id")
    @Schema(description = "字典类别id 表b_dict_type 主键id")
    private Long dicTypeId;

    /**
     * 字典名称
     */
    @TableField(value = "`dict_item_name`")
    @Schema(description = "字典名称")
    private String dictItemName;

    /**
     * 字典值
     */
    @TableField(value = "dict_item_value")
    @Schema(description = "字典值")
    private String dictItemValue;

    /**
     * 上级id
     */
    @TableField(value = "parent_id")
    @Schema(description = "上级id")
    private Integer parentId;

    /**
     * 备注
     */
    @TableField(value = "remark")
    @Schema(description = "备注")
    private String remark;
}